const useplmFrontend = defineStore('useplmFrontend', {
	state: () => ({
		totalLayers: 0, //menu接口返回数据中的层级数（totalLayers字段）
		topToolList: [
			{ name: 'developmentSeason', value: [], chooseAll: false, checkList: [] },
			{ name: 'brand', value: [], chooseAll: false, checkList: [] },
			{ name: 'developmentMode', value: [], chooseAll: false, checkList: [] },
			{ name: 'developmentCategory', value: [], chooseAll: false, checkList: [] }
		],
		infoList: [],
		parentTabId: '',
		subTabId: []
	}),
	actions: {
		setTotalLayers(data) {
			this.totalLayers = data
		},
		setTopToolList(data) {
			this.topToolList = data
		},
		setInfoList(data) {
			this.infoList = data
		},
		setSubTabId(data) {
			this.subTabId = data
		},
		setParentTabId(data) {
			this.parentTabId = data
		}
	}
})

export default useplmFrontend
